package nccloud.web.gl.accountrep.action;

import java.util.Map;

import nc.bs.gl.report.itf.IReportLinkAssDetailService;
import nc.itf.pub.service.IQuerySubjectService;
import nc.vo.pub.BusinessException;
import nccloud.framework.service.ServiceLocator;
import nccloud.pubitf.gl.account.IAccountReportWebService;

public class AssDetailQueryAction extends AbstAccountRepCommonAction {
	public Object doQuery(Map<String, Object> paraMap) throws BusinessException {
		IQuerySubjectService service = ServiceLocator.find(IQuerySubjectService.class);
		if(paraMap.get("subjectType") != null) {
			paraMap = service.handlerYeAndMXParam("1001YY1000000003GLG8", paraMap);
		}
		if(paraMap.get("linkxm") != null && "linkxm".equals(paraMap.get("linkxm"))) {
			paraMap = ServiceLocator.find(IReportLinkAssDetailService.class).handleAssDetailMap(paraMap);
		}
		return ServiceLocator.find(IAccountReportWebService.class).queryAssDetail(paraMap);
	}
}